<?php $this->load->view('common/header');?>
<body>
<?php $this->load->view('common/user_center');?>
<div class="main_box">
    <?php $this->load->view('common/menu');?>
    <div class="right_box f_r">
    	<div class="title">
        	<span class="f_l">销售贷</span>
        </div>
        <div class="loan_data">
        	<span class="f_l">
                <?php if($user['user_card_rz'] < 2){ ?>
                    <?php if($user['user_card_rz']==1){ ?>
                        <em>申请中</em>
                        <p><a href="<?php echo site_url(V_URL.'user/verified');?>">查看认证</a></p>
                    <?php }else{?>
                        <em>未开通销售贷</em>
                        <p><a href="<?php echo site_url(V_URL.'user/verified');?>">开通销售贷</a></p>
                    <?php } ?>
                <?php }else{ ?>
                    <em><?php echo $member['user_money_real'];?></em>
                    <p>销售贷可用余额</p>
                <?php } ?>
            </span>
            <span class="f_r">
            	<em>如何使用销售贷？</em>
                <p>1.平台根据您信用记录和应收账款情况为您开通授信额度：</p>
                <p>&nbsp;&nbsp;&nbsp;信用借贷授信额度为3-10万</p>
                <p>&nbsp;&nbsp;&nbsp;应收账款流水授信额度为3-100万</p>
                <p>2.授信额度只用于平台产品采购使用，不能提现。</p>
                <p>3.消费额度按日计算，月息为1.5-2%之间。</p>
                <p>4.消费额度可和信用卡一样申请3、6、9期进行还款，并可循环使用。</p>
                <p>5.授信额度根据使用记录每三个月进行更新</p>
            </span>
        </div>
    	<div class="title">
        	<span class="f_l">使用记录</span>
        </div>
        <div class="loan_table">
        	<table>
            	<tr>
                	<th>类型</th>
                    <th>时间</th>
                    <th>订单</th>
                    <th>消费</th>
                </tr>
                <?php if($logs){ foreach ($logs as $key => $val) { ?>
            	<tr>
                	<td>销售贷支付</td>
                    <td><?php echo $val['ctime']; ?></td>
                    <td><?php echo $val['order_no']; ?></td>
                    <td>-<?php echo $val['order_cost']; ?></td>
                </tr>
                <?php } }?>
            </table>
        </div>
    </div>
</div>
<!--]] user -->
<!-- coypright [[-->
<div class="coypright">&copy; 2018 <a href="http://www.xiaoshouhehuoren.com">销售后勤协作系统</a> <a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备18052219号</a></div>
<!--]] coypright -->
</body>
</html>
